-- GENERATED SPELL FOR [Dark Subjugator] --


function spell0_32236(pUnit, Event) --@Mind Sear,n/a--
pUnit:FullCastSpellOnTarget(32000,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32236', 3000, 1)
end

function spell1_32236(pUnit, Event) --@Pain Spike,n/a--
pUnit:FullCastSpellOnTarget(32026,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32236', 0, 1)
end

function Sorts_32236(pUnit, Event)
local choix_sorts_32236 = math.random(0, 1)
if choix_sorts_32236 == 0 then
pUnit:RegisterEvent('spell0_32236', 1, 1)
end
if choix_sorts_32236 == 1 then
pUnit:RegisterEvent('spell1_32236', 1, 1)
end
end

function mob32236_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32236', math.random(1500, 3000), 1)
end

function mob32236_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32236_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32236_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32236, 1, 'mob32236_Action')
RegisterUnitEvent(32236, 2, 'mob32236_Leave')
RegisterUnitEvent(32236, 3, 'mob32236_Kill')
RegisterUnitEvent(32236, 4, 'mob32236_Die')
